package com.shuaishuai.ketaiheadlines.dao;

import com.shuaishuai.ketaiheadlines.pojo.Newscategories;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewscategoriesMapper {
    int deleteByPrimaryKey(Integer categoryId);

    int insert(Newscategories record);

    int insertSelective(Newscategories record);

    Newscategories selectByPrimaryKey(Integer categoryId);

    int updateByPrimaryKeySelective(Newscategories record);

    int updateByPrimaryKeyWithBLOBs(Newscategories record);

    int updateByPrimaryKey(Newscategories record);

    List<Newscategories> selectListNewscategories(@Param("name") String name);

    int insertNewscategories(String name);
}